package top.liuziqian.shop.domain;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import top.liuziqian.common.core.domain.BaseEntity;
import top.liuziqian.common.xss.Xss;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.Size;

/**
 * 商品供应商分类表 shop_goods_supplier_category
 *
 * @author liujian
 */
@ApiModel(value = "GoodsSupplierCategory", description = "商品供应商分类")
public class GoodsSupplierCategory extends BaseEntity {

    private static final long serialVersionUID = 1L;

    /** 供应商分类ID */
    @ApiModelProperty("供应商分类ID")
    private Long supplierCategoryId;

    /** 供应商分类名称 */
    @ApiModelProperty(value = "供应商分类名称",required = false)
    private String supplierCategoryName;

  

    /** 排序 */
    @ApiModelProperty("排序")
    private Integer orderNum;

    

    public Long getSupplierCategoryId() {
        return supplierCategoryId;
    }

    public void setSupplierCategoryId(Long supplierCategoryId) {
        this.supplierCategoryId = supplierCategoryId;
    }

    @Xss(message = "供应商分类名称不能包含脚本字符")
    @NotBlank(message = "供应商分类名称不能为空")
    @Size(min = 0, max = 50, message = "供应商分类名称不能超过50个字符")
    public String getSupplierCategoryName() {
        return supplierCategoryName;
    }

    public void setSupplierCategoryName(String supplierCategoryName) {
        this.supplierCategoryName = supplierCategoryName;
    }

 

    public Integer getOrderNum() {
        return orderNum;
    }

    public void setOrderNum(Integer orderNum) {
        this.orderNum = orderNum;
    }



    @Override
    public String toString() {
        return "GoodsSupplierCategory{" +
                "supplierCategoryId=" + supplierCategoryId +
                ", supplierCategoryName='" + supplierCategoryName + '\'' +
                ", orderNum=" + orderNum +
                '}';
    }
}
